package com.lianbang.staff.adapter

import cn.ubest.mvvmcore.utils.ResourcesUtils
import cn.ubest.mvvmcore.utils.SpanUtils
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.lianbang.staff.R

/**
 * Created by maoqi on 2020/12/28.
 */
class TodayIncomeListAdapter : BaseQuickAdapter<String, BaseViewHolder>(R.layout.item_today_income_list) {
    override fun convert(helper: BaseViewHolder, item: String) {
        helper.setText(R.id.tv_title, "北京市协和大药房")
            .setText(
                R.id.tv_content, SpanUtils()
                    .append("阿莫西林5盒，西斯迪鳞片10盒，总金额")
                    .append("15000")
                    .setBold()
                    .setForegroundColor(ResourcesUtils.getColor(R.color.C_F74850))
                    .append("元")
                    .create()
            )
    }

}